﻿using System;
using System.IO;
using System.Linq;
using UnityEngine;

// Token: 0x020005C9 RID: 1481
public abstract class AssetBundleCheck
{
	// Token: 0x170003C5 RID: 965
	// (get) Token: 0x0600237D RID: 9085 RVA: 0x0013C354 File Offset: 0x0013A554
	public static bool IsSimulation
	{
		get
		{
			return false;
		}
	}

	// Token: 0x0600237E RID: 9086 RVA: 0x0013C358 File Offset: 0x0013A558
	public static bool IsFile(string assetBundleName, string fileName = "")
	{
		return File.Exists(global::AssetBundleManager.BaseDownloadingURL + assetBundleName);
	}

	// Token: 0x0600237F RID: 9087 RVA: 0x0013C374 File Offset: 0x0013A574
	public static string[] GetAllAssetName(string assetBundleName, bool _WithExtension = true)
	{
		AssetBundle assetBundle = AssetBundle.LoadFromFile(global::AssetBundleManager.BaseDownloadingURL + assetBundleName);
		string[] result;
		if (_WithExtension)
		{
			result = (from file in assetBundle.GetAllAssetNames()
			select Path.GetFileName(file)).ToArray<string>();
		}
		else
		{
			result = (from file in assetBundle.GetAllAssetNames()
			select Path.GetFileNameWithoutExtension(file)).ToArray<string>();
		}
		assetBundle.Unload(true);
		return result;
	}
}
